package com.intellagric.interfaces.facility;

import com.intellagric.common.bean.LayuiDataGridResult;
import com.intellagric.common.bean.ResponseMessage;
import com.intellagric.pojo.Facility;
import org.springframework.web.multipart.MultipartFile;

public interface FacilityService {
    ResponseMessage selectFacilityById(String id);

    Facility queryFacilityById(String id);

    ResponseMessage insertFacility(Facility Facility);

    ResponseMessage deleteFacility(String id);

    ResponseMessage editFacility(Facility Facility);

    LayuiDataGridResult getList(int page, int rows);

    LayuiDataGridResult getListByCategoryId(int page, int limit, String categoryId);

    LayuiDataGridResult batchDeleteFacility(String[] ids);
    LayuiDataGridResult batchDelete(String[] ids);

    LayuiDataGridResult getFacilityByKeyword(int page, int limit, String keyword);


    LayuiDataGridResult addFacilityExcelData(MultipartFile uploadFile);
}
